package com.zood.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zood.domain.scale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ScaleDao extends BaseMapper<scale> {
    @Select("select * from t_scale ")
    List<scale> getALL();

    @Select("select * from t_scale where type=#{type}")
    List<scale> getAll(@Param("type") int type);
}
